home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 2
/
Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso
/
Aminet
/
game
/
misc
/
TWdb03.lha
/
CIM.scp
next >
Wrap
Text File
|
1993-09-25
|
4KB
|
186 lines
/* TradeWars CIM data collection script */
CLEAR
PORTS = 1
SECTORS = 2
OTHER = 4
bbsname$ = "Lion" /* Insert your default BBS name here */
CAPTUREPATH$ = "CAPTURE:" /* The path where you want your capture files to go */
GOSUB HEADER
GETSTRING "BBS Name", bbsname$
GETSTRING "Capture path", CAPTUREPATH$
GOSUB MENU
CLS
PRINT LOCAL "Getting capture files for "+bbsname$+" BBS"
PRINT LOCAL
WHEN ALL
WHEN 1 "Pause" SEND "\r"
WHEN 2 "Citadel command" SEND "l"
WHEN 3 "TL" SEND "c"
WHEN 4 "Quit" SEND "n"
WHEN 5 "Cannon" SEND "\r"
WHEN 6 "Planet command" SEND "l"
SEND "q"
WAIT 15 "Computer command"
WHEN ALL
WHEN 1 "Pause" SEND "\r"
WHEN 2 "now ON" SEND "n"
SEND "n"
WAIT 10 "now OFF"
WHEN ALL
WHEN 1 "Pause" SEND "\r"
IF ((choice AND PORTS) == PORTS) OR ((choice AND SECTORS) == SECTORS)
SEND "\xC8\xC9\xCA\xCB\xCC\xCD"
WAIT 5 ":"
SEND "\r"
WAIT 5 ":"
IF (choice AND SECTORS) == SECTORS
CAPTURE OPEN bbsname$+".sct"
SEND "i"
WAIT 180 ":"
CAPTURE CLOSE
ENDIF
IF (choice AND PORTS) == PORTS
CAPTURE OPEN bbsname$+".prt"
SEND "r"
WAIT 180 ":"
CAPTURE CLOSE
SEND "q"
WAIT 5 "Computer command"
ENDIF
ENDIF
SEND "q"
WAIT 10 "TL"
WHEN 2
IF (choice AND OTHER) == OTHER
CAPTURE OPEN bbsname$+".ftr"
SEND "g"
WAIT 15 "TL"
CAPTURE CLOSE
CAPTURE OPEN bbsname$+".min"
SEND "k"
WAIT 15 "TL"
CAPTURE CLOSE
CAPTURE OPEN bbsname$+".sta"
SEND "v"
WAIT 15 "TL"
CAPTURE CLOSE
ENDIF
SEND "c"
WAIT 5 "Computer command"
SEND "n"
WAIT 5 "Computer command"
SEND "q"
WHEN ALL
WAIT 5 "TL"
CLS
PRINT LOCAL "Script completed! Data saved."
PAUSE 1
CLS
SEND "\r\r"
END
/* script end */
/* Print header */
HEADER:
CLS
bpen = 14
tpen = 15
MOVE 1, 1
PRINT LOCAL " ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» "
PRINT LOCAL " º";SPACE$(22);
tpen = 9
PRINT LOCAL "* TWdb Data Collection Utility *";
tpen = 15
PRINT LOCAL SPACE$(22);"º "
PRINT LOCAL " º";SPACE$(31);
tpen = 1
PRINT LOCAL "by Jim McKinney";
tpen = 15
PRINT LOCAL SPACE$(30);"º "
PRINT LOCAL " ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ "
bpen = 0
tpen = 1
RETURN
/* Do the Menu */
MENU:
MOVE 7, 1
PRINT LOCAL " ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»"
PRINT LOCAL " º";SPACE$(68);"º"
PRINT LOCAL " º ";
tpen = 9
PRINT LOCAL "Capture TWdb files from ";
tpen = 13
PRINT LOCAL bbsname$;SPACE$(37-LEN(bbsname$));
tpen = 1
PRINT LOCAL "º"
PRINT LOCAL " º";SPACE$(68);"º"
PRINT LOCAL " º";SPACE$(68);"º"
PRINT LOCAL " º (";
tpen = 12
PRINT LOCAL "A";
tpen = 1
PRINT LOCAL ")ll files";SPACE$(50);"º"
PRINT LOCAL " º (";
tpen = 12
PRINT LOCAL "C";
tpen = 1
PRINT LOCAL ")IM port & sector files";SPACE$(36);"º"
PRINT LOCAL " º (";
tpen = 12
PRINT LOCAL "P";
tpen = 1
PRINT LOCAL ")orts, game status, fighters, & mines";SPACE$(22);"º"
PRINT LOCAL " º (";
tpen = 12
PRINT LOCAL "G";
tpen = 1
PRINT LOCAL ")ame status, fighters, & mines";SPACE$(29);"º"
PRINT LOCAL " º (";
tpen = 12
PRINT LOCAL "Q";
tpen = 1
PRINT LOCAL ")uit";SPACE$(55);"º"
PRINT LOCAL " º";SPACE$(68);"º"
PRINT LOCAL " º";SPACE$(68);"º"
PRINT LOCAL " º";SPACE$(68);"º"
PRINT LOCAL " º";SPACE$(68);"º"
PRINT LOCAL " ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ"
/* Menu prompt */
MENU2:
MOVE 19, 10
tpen = 10
ASK LOCAL "Your choice? \b\b\b\b\b", choice$
choice$ = UPPER$(choice$)
IF choice$ == "A"
choice = PORTS + SECTORS + OTHER
ELSE
IF choice$ == "C"
choice = PORTS + SECTORS
ELSE
IF choice$ == "P"
choice = PORTS + OTHER
ELSE
IF choice$ == "G"
choice = OTHER
ELSE
IF choice$ == "Q"
tpen = 1
bpen = 0
cls
END
ELSE
BEEP
MOVE 19, 10
tpen = 11
PRINT LOCAL "Invalid selection!";
tpen = 1
PAUSE 1
GOTO MENU2
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
RETURN